package entity;

import java.math.BigDecimal;
import java.util.Date;

public class PmsProduct {
    private Integer product_id;

    private Integer category_id;

    private String product_name;

    private String subtitle;

    private Integer brand_id;

    private String product_sn;

    private BigDecimal original_price;

    private BigDecimal price;

    private Integer stock;

    private String unit;

    private BigDecimal weight;

    private Integer sort;

    private BigDecimal promotion_price;

    private Integer gift_growth;

    private Integer gift_point;

    private Integer use_point_limit;

    private Integer preview_status;

    private Integer publish_status;

    private Integer new_status;

    private Integer recommand_status;

    private String detail_title;

    private String keywords;

    private String note;

    private Date promotion_start_time;

    private Date promotion_end_time;

    private Integer promotion_id;

    private String picture;

    public Integer getProduct_id() {
        return product_id;
    }

    public void setProduct_id(Integer product_id) {
        this.product_id = product_id;
    }

    public Integer getCategory_id() {
        return category_id;
    }

    public void setCategory_id(Integer category_id) {
        this.category_id = category_id;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name == null ? null : product_name.trim();
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle == null ? null : subtitle.trim();
    }

    public Integer getBrand_id() {
        return brand_id;
    }

    public void setBrand_id(Integer brand_id) {
        this.brand_id = brand_id;
    }

    public String getProduct_sn() {
        return product_sn;
    }

    public void setProduct_sn(String product_sn) {
        this.product_sn = product_sn == null ? null : product_sn.trim();
    }

    public BigDecimal getOriginal_price() {
        return original_price;
    }

    public void setOriginal_price(BigDecimal original_price) {
        this.original_price = original_price;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit == null ? null : unit.trim();
    }

    public BigDecimal getWeight() {
        return weight;
    }

    public void setWeight(BigDecimal weight) {
        this.weight = weight;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public BigDecimal getPromotion_price() {
        return promotion_price;
    }

    public void setPromotion_price(BigDecimal promotion_price) {
        this.promotion_price = promotion_price;
    }

    public Integer getGift_growth() {
        return gift_growth;
    }

    public void setGift_growth(Integer gift_growth) {
        this.gift_growth = gift_growth;
    }

    public Integer getGift_point() {
        return gift_point;
    }

    public void setGift_point(Integer gift_point) {
        this.gift_point = gift_point;
    }

    public Integer getUse_point_limit() {
        return use_point_limit;
    }

    public void setUse_point_limit(Integer use_point_limit) {
        this.use_point_limit = use_point_limit;
    }

    public Integer getPreview_status() {
        return preview_status;
    }

    public void setPreview_status(Integer preview_status) {
        this.preview_status = preview_status;
    }

    public Integer getPublish_status() {
        return publish_status;
    }

    public void setPublish_status(Integer publish_status) {
        this.publish_status = publish_status;
    }

    public Integer getNew_status() {
        return new_status;
    }

    public void setNew_status(Integer new_status) {
        this.new_status = new_status;
    }

    public Integer getRecommand_status() {
        return recommand_status;
    }

    public void setRecommand_status(Integer recommand_status) {
        this.recommand_status = recommand_status;
    }

    public String getDetail_title() {
        return detail_title;
    }

    public void setDetail_title(String detail_title) {
        this.detail_title = detail_title == null ? null : detail_title.trim();
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords == null ? null : keywords.trim();
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note == null ? null : note.trim();
    }

    public Date getPromotion_start_time() {
        return promotion_start_time;
    }

    public void setPromotion_start_time(Date promotion_start_time) {
        this.promotion_start_time = promotion_start_time;
    }

    public Date getPromotion_end_time() {
        return promotion_end_time;
    }

    public void setPromotion_end_time(Date promotion_end_time) {
        this.promotion_end_time = promotion_end_time;
    }

    public Integer getPromotion_id() {
        return promotion_id;
    }

    public void setPromotion_id(Integer promotion_id) {
        this.promotion_id = promotion_id;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture == null ? null : picture.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", product_id=").append(product_id);
        sb.append(", category_id=").append(category_id);
        sb.append(", product_name=").append(product_name);
        sb.append(", subtitle=").append(subtitle);
        sb.append(", brand_id=").append(brand_id);
        sb.append(", product_sn=").append(product_sn);
        sb.append(", original_price=").append(original_price);
        sb.append(", price=").append(price);
        sb.append(", stock=").append(stock);
        sb.append(", unit=").append(unit);
        sb.append(", weight=").append(weight);
        sb.append(", sort=").append(sort);
        sb.append(", promotion_price=").append(promotion_price);
        sb.append(", gift_growth=").append(gift_growth);
        sb.append(", gift_point=").append(gift_point);
        sb.append(", use_point_limit=").append(use_point_limit);
        sb.append(", preview_status=").append(preview_status);
        sb.append(", publish_status=").append(publish_status);
        sb.append(", new_status=").append(new_status);
        sb.append(", recommand_status=").append(recommand_status);
        sb.append(", detail_title=").append(detail_title);
        sb.append(", keywords=").append(keywords);
        sb.append(", note=").append(note);
        sb.append(", promotion_start_time=").append(promotion_start_time);
        sb.append(", promotion_end_time=").append(promotion_end_time);
        sb.append(", promotion_id=").append(promotion_id);
        sb.append(", picture=").append(picture);
        sb.append("]");
        return sb.toString();
    }
}